﻿import event

def create_issue(form_content):
	event_content = {}
	this_event = Event(event_content)
	if this_event.is_valid():
		if this_event.execute():
			this_event.store_event("success")
		else:
			this_event.store_event("fail")
	else:
		this_event.store_event("not_vaild")
		
def edit_issue(form_content):
	pass
	
def update_issue(form_content):
	pass
	
def undo_issue(form_content):
	pass
	
def create_project(form_content):
	pass
	
def edit_project(form_content):
	pass
	
def 

if __name__ == "__main__":
	form = {"submitter": "yaozhikun", "subject":"test", "project": "p1", "attributes": {"description":"this is test!", "attachment":"pic/haha"}}
	create_issue(form)
		